/*
 * @Author: your name
 * @Date: 2022-04-03 16:59:51
 * @LastEditTime: 2022-04-13 20:05:23
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\trainees\dto\create-trainee.dto.ts
 */
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber } from "class-validator";

export class CreateTraineeDto {

  @IsNotEmpty()
  @ApiProperty({ description: '预约时间' })
  readonly attendTime: string;

  @IsNotEmpty()
  @ApiProperty({ description: '教练ID' })
  readonly coach: string;

  @IsNotEmpty()
  @ApiProperty({ description: '学员练车状态' })
  readonly status: string;


  @IsNotEmpty()
  @ApiProperty({ description: '教练电话' })
  readonly telephone: string;

  @IsNotEmpty()
  @ApiProperty({description:'科目分类'})
  readonly catogary:string;

  @IsNotEmpty()
  @ApiProperty({ description: '建表时间' })
  readonly create_time: string;

}
export class TraineeInfoDto {
  public id: number;
  public trainee: string;
  public traineeName: string;
  public attendTime: string;
  public status: string;
  public coach: string;
  public telephone: string;
  public catogary: string;
  public create_time:string;
}

export interface TraineeRo {
  list: TraineeInfoDto[];
  Total: number;
}
